package org.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.pojo.DRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.pojo.DStaff;
import org.example.pojo.select.DRoleSelect;

import java.util.List;
import java.util.Map;

/**
* @author chenhongkai
* @description 针对表【d_role】的数据库操作Mapper
* @createDate 2024-06-24 09:10:05
* @Entity org.example.pojo.DRole
*/
public interface DRoleMapper extends BaseMapper<DRole> {

    IPage<Map> SelectAllRoles(Page<DStaff> page, @Param("dRoleSelect") DRoleSelect dRoleSelect);

    Integer insertRole(DRoleSelect dRoleSelect);

    List<Integer> selectPowerByRoleId(Integer roleId);
}




